<app-seal [view]="seal.view()"></app-seal>
<section class="panel">
  <div class="step" *ngIf="seal.step>0 && !seal.isDone()">
    剩余步数: <span>{{seal.step}}</span>
  </div>
  <div class="over" *ngIf="seal.isOver()">
    游戏失败
  </div>
  <div class="done" *ngIf="seal.isDone()">
    游戏完成
  </div>

  <div style="height: 30px"></div>

  <app-keyboard (keyClick)="handleOrient($event)"></app-keyboard>

  <div style="height: 30px"></div>

  <div>
    <button (click)="onResetClick()">重置本轮</button>
    &nbsp;
    <button (click)="onRestartClick()">重新开始</button>
  </div>
</section>
